package com.kcyu.sfhinvoice.controller;

import cn.dev33.satoken.util.SaResult;
import com.kcyu.sfhinvoice.dto.StatisticVO;
import com.kcyu.sfhinvoice.service.StatisticService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/statistic")
public class StatisticController {

    @Autowired
    private StatisticService statisticService;

    @PostMapping("getStatistic")
    public SaResult getStatistic() {
        return SaResult.data(statisticService.getStatistic());
    }
}
